# -*- coding: utf-8 -*-#
#-------------------------------------------------------------------------------
# 建立者:        潘炎珍  
# Name:         demo11
# Description:
# Author:       98745
# Date:         2019/3/9
#-------------------------------------------------------------------------------

import time
import locale
try:
    print(time.localtime())
    locale.setlocale(locale.LC_CTYPE, 'chinese')
    print(time.strftime('%Y-%m-%d %H:%M:%S',time.localtime()))
    print(time.strftime('%Y年%m月%d %H时%M分%S秒',time.localtime()))
    print(time.strftime('%Y{y}%m{m}%d{d} %H{H}%M{M}%S{S}'.format(y='年',m='月',d='天',H='时',M='分',S='秒')))
    print(time.strftime('今天是：%A',time.localtime()))
    print(111)
except Exception as e:
    print(e)